package com.spark.common.core.entity.params;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 查询树表中的具体参数实体
 *
 * @author LYCHEE
 * @date 2025/2/20 09:56
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class SelectTableTreeParams extends SelectTableParams{

    /**
     * 树级结构，父级ID的字段名
     */
    private String parentField = "pid";

    /**
     * 排序字段,可不传
     */
    private String sortRankField;

    /**
     * 排序方式，默认升序
     */
    private String sortRankWay = "asc";
}
